Public Class Config

    Private Const DEFAULT_LOGINSERVERPORT As Integer = 3687

    ' gets the version number of the assembly
    Public Shared ReadOnly Property GetVersion() As String
        Get
            Return System.Reflection.Assembly.GetExecutingAssembly.GetName.Version.ToString
        End Get
    End Property

    Public Shared ReadOnly Property LoginServerPort() As Integer
        Get
            Try
                Return CInt(System.Configuration.ConfigurationManager.AppSettings("LoginServerPort"))
            Catch ex As Exception
                Return DEFAULT_LOGINSERVERPORT
            End Try
        End Get
    End Property
End Class
